package server;

import peer.tools.Mdb;

public class GroupMange{
	public boolean  containsGroup(Mdb mdb){
		return Config.groupTable.containsKey(mdb);
	}
	
	public void addGroup(Mdb mdb){
		Group mdg=new Group(mdb);
		Config.groupTable.put(mdb, mdg);
	}
	
	public void removeGroup(Mdb mdb){
		Config.groupTable.remove(mdb);
	}
	
	public Group getGroup(Mdb mdb){
		return Config.groupTable.get(mdb);
	}
	
}
